Rational pursuit of happiness